import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '@/views/Home/index.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
  },
  {
    path: '/course',
    name: 'Course',
    component: () => import( '@/views/Course/index.vue')
  },
  {
    path: '/courseinfo',
    name: 'CourseInfo',
    component: () => import( '@/views/CourseInfo/index.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
